package com.smart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.common.PageInfo;
import com.smart.model.domain.SuperviseUserDO;
import com.smart.model.request.SuperviseUserAddRequest;
import com.smart.model.request.SuperviseUserRequest;
import com.smart.model.request.SuperviseUserUpdateRequest;
import com.smart.model.vo.SuperviseUserVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface SuperviseUserService extends IService<SuperviseUserDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
     SuperviseUserVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<SuperviseUserVO> pageQuery(SuperviseUserRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<SuperviseUserVO> listQuery(SuperviseUserRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(SuperviseUserAddRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(SuperviseUserUpdateRequest request);
    /**
     * 删除
     * @param id
     * @return
     */
    Boolean deleteByKey(long id);
}
